package com.cbg.service.impl;

import com.cbg.mapper.TbItemMapper;
import com.cbg.pojo.TbItem;
import com.cbg.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chenboge on 2017/8/20.
 * <p>
 * Email:baigegechen@gmail.com
 * <p>
 * description:
 */
@Service("itemService")
public class ItemServiceImpl implements ItemService {

    @Autowired
    private TbItemMapper itemMapper;

    @Override
    public TbItem getTbItemById(long id) {
        return itemMapper.selectByPrimaryKey(id);
    }
}
